import request from '@/sheep/request';

export default {
    // 日收益：列表接口
    dailyIndexAPI: (params) =>
    request({
        url: 'api/daily_yield/index',
        method: 'GET',
        custom: {
            auth: true,
        },
        params
    }),

    // 日收益：详情接口
    dailyViewAPI: (params) =>
    request({
        url: 'api/daily_yield/view',
        method: 'GET',
        custom: {
            auth: true,
        },
        params
    }),

    // 日收益：作废接口
    dailyCancellationAPI: (params) =>
    request({
        url: 'api/daily_yield/cancellation',
        method: 'POST',
        custom: {
            auth: true,
            showSuccess: true
        },
        params
    }),

    // 日收益：提交（项目负责人提交）接口
    dailyAddAPI: (data) =>
    request({
        url: 'api/daily_yield/add',
        method: 'POST',
        custom: {
            auth: true,
            showSuccess: true,
            showError: true
        },
        data
    }),

    // 日收益：修改（财务提交）接口
    dailyEditAPI: (data) =>
    request({
        url: 'api/daily_yield/edit',
        method: 'POST',
        custom: {
            auth: true,
            showSuccess: true
        },
        data
    })
}